﻿<UserControl x:Class="WordTemplate1.WPF.WorkFlow"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" Loaded="UserControl_Loaded">
    <ScrollViewer HorizontalScrollBarVisibility="Visible">
        <Grid>
        <Slider x:Name="zoomSlider" Minimum="0.1" Maximum="4" Value="1" Background="White" />
            <Canvas x:Name="designer" Background="#FFFFFFFF" Margin="0,24,0,0" Width="2400">
                <Canvas.LayoutTransform>
                    <ScaleTransform 
                            ScaleX="{Binding Path=Value, ElementName=zoomSlider}"
                            ScaleY="{Binding Path=Value, ElementName=zoomSlider}"/>
                </Canvas.LayoutTransform>
             </Canvas>
        </Grid>
    </ScrollViewer>
</UserControl>